projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9df2c09
)
open-with-pk: don't set error if the user cancelled the installation
author
Cosimo Cecchi
<cosimoc@gnome.org>
Fri, 19 Nov 2010 17:33:05 +0000
(18:33 +0100)
committer
Cosimo Cecchi
<cosimoc@gnome.org>
Tue, 23 Nov 2010 15:51:40 +0000
(16:51 +0100)
gtk/gtkopenwithonlinepk.c
patch
|
blob
|
history
diff --git
a/gtk/gtkopenwithonlinepk.c
b/gtk/gtkopenwithonlinepk.c
index 28a45a82c70a28be685cb290ced72a410018124b..939f42ddab0cf55fee094fa72924c6d051dc6c06 100644
(file)
--- a/
gtk/gtkopenwithonlinepk.c
+++ b/
gtk/gtkopenwithonlinepk.c
@@
-98,7
+98,10
@@
install_mime_types_ready_cb (GObject *source,
variant = g_dbus_proxy_call_finish (proxy, res, &error);
if (variant == NULL) {
- g_simple_async_result_set_from_error (self->priv->result, error);
+ /* don't show errors if the user cancelled the installation explicitely */
+ if (g_strcmp0 (g_dbus_error_get_remote_error (error), "org.freedesktop.PackageKit.Modify.Cancelled") != 0)
+ g_simple_async_result_set_from_error (self->priv->result, error);
+
g_error_free (error);
}